package cn.com.elite.util;

import javax.servlet.http.*;
import javax.servlet.*;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.com.elite.workorder.ContextHelper;
import cn.com.elite.workorder.WORKORDERFRAME;

import java.io.*;

public class InitServlet
	extends HttpServlet {
	public void init() throws ServletException {
		System.out.println("-------------InitServlet Start----------------");
		WORKORDERFRAME.SENDSMSURL = this.getInitParameter("SENDSMSURL");
		System.out.println("SENDSMSURL:" + WORKORDERFRAME.SENDSMSURL);
        WORKORDERFRAME.QUERYFEEURL = this.getInitParameter("QUERYFEEURL");
		System.out.println("QUERYFEEURL:" + WORKORDERFRAME.QUERYFEEURL);
		WORKORDERFRAME.QUERYSTATUSURL = this.getInitParameter("QUERYSTATUSURL");
		System.out.println("QUERYSTATUSURL:" + WORKORDERFRAME.QUERYSTATUSURL);
		WORKORDERFRAME.GETSMSYURL = this.getInitParameter("GETSMSYURL");
		System.out.println("GETSMSYURL:" + WORKORDERFRAME.GETSMSYURL);
		WORKORDERFRAME.SMSStatusSQL = this.getInitParameter("SMSStatusSQL");
		System.out.println("SMSStatusSQL:" + WORKORDERFRAME.SMSStatusSQL);
		WORKORDERFRAME.ReceiveSMSSQL = this.getInitParameter("ReceiveSMSSQL");
		System.out.println("ReceiveSMSSQL:" + WORKORDERFRAME.ReceiveSMSSQL);
		WORKORDERFRAME.TS_QueryUndwrtStatusSQL = this.getInitParameter("TS_QueryUndwrtStatusSQL");
		System.out.println("TS_QueryUndwrtStatusSQL:" + WORKORDERFRAME.TS_QueryUndwrtStatusSQL);
		
		WORKORDERFRAME.QUERYSMSSTATUSTIME = this.getInitParameter("QUERYSMSSTATUSTIME");
		System.out.println("QUERYSMSSTATUSTIME:" + WORKORDERFRAME.QUERYSMSSTATUSTIME);
		WORKORDERFRAME.QUERYSMSSTATUSCOUNT = this.getInitParameter("QUERYSMSSTATUSCOUNT");
		System.out.println("QUERYSMSSTATUSCOUNT:" + WORKORDERFRAME.QUERYSMSSTATUSCOUNT);
		WORKORDERFRAME.QUERYSMSSTATUSSQL = this.getInitParameter("QUERYSMSSTATUSSQL");
		System.out.println("QUERYSMSSTATUSSQL:" + WORKORDERFRAME.QUERYSMSSTATUSSQL);
		
		WORKORDERFRAME.USER = this.getInitParameter("USER");
		System.out.println("USER:" + WORKORDERFRAME.USER);
		WORKORDERFRAME.PASSWD = this.getInitParameter("PASSWD");
		System.out.println("PASSWD:" + WORKORDERFRAME.PASSWD);
		
//		ContextHelper cc = new ContextHelper();
		System.out.println("-------------InitServlet End----------------");
	}

}
